import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dell
 * Date: 2023-12-18
 * Time: 12:07
 */
public class test1 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int a=in.nextInt();
        System.out.println(a);
        int sum=0;
        int n=2;
        while(a>0) {
            sum += n;
            n = n * 10 + 2;
            System.out.println(n);
            a--;
        }
        System.out.println(sum);
    }
}